package com.yn.module.spider.config.strategy;

import com.yn.module.spider.utils.base.BaseSpiderService;
import com.yn.module.spider.utils.constant.OptEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(fluent = true)
@ApiModel("StrategyFactory中保存的信息")
public class SpiderDTO {
    @ApiModelProperty("url")
    private String url;
    /* 如果请求主表：那么为mainService ,如果请求字表那么为subService,otherService中需要填入mainService */
    @ApiModelProperty("当前请求service")
    private BaseSpiderService currentService;
    @ApiModelProperty("明细表对应的service")
    private BaseSpiderService otherService;
    @ApiModelProperty("请求参数：爬虫类型：主表还是子表")
    private OptEnum type;
    @ApiModelProperty("请求参数：service类型标注")
    private OptEnum svc;

}
